<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:pf="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://xmlns.jcp.org/jsf/passthrough">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="userForm"> 
            <f:view locale="ar">
            <pf:panelGrid id="usersPanel" columns="3">
                <f:facet name="header">Enter User Data</f:facet>
                <h:outputLabel for="userName" accesskey="l" value="User Name"/>
                <pf:inputText id="userName" accesskey="u" value="#{usersBean.name}" required="true" requiredMessage="#{msg.name_empty}"/>
                    <pf:message for="userName"/>
              
                 <h:outputLabel for="password" accesskey="l" value="Passowrd"/>
                 <pf:password id="password" accesskey="u" value="#{usersBean.password}" required="true" requiredMessage="Passowrd Cannot be Empty"/>
                    <pf:message for="password"/>
               
                  <h:outputLabel for="email" accesskey="l" value="Email"/>
                  <pf:inputText id="email" accesskey="u" value="#{usersBean.email}" required="true" requiredMessage="Email Cannot be Empty"/>
                    <pf:message for="email"/>
               
                  <f:facet name="footer">
                      <pf:commandButton id="exitFlow"  action="returnFromUsers" value="exit Flow" update="usersPanel"/>
                  </f:facet>
            </pf:panelGrid>
            
            <pf:panel header="#{msg.welcome}" ></pf:panel>
            <h:inputText p:type="number"></h:inputText>
            </f:view>
        </h:form>
    </h:body>
</html>

